<include file="__PUBLIC__/header.html" />
	<title>{$field.title} - {$const.webname}</title>
<include file="__PUBLIC__/top.html" />



	<!-- 内容开始 -->
	<div class="w1180 auto mt20 fix">
		<!-- 左侧开始 -->
		<div class="f w860 mr20 l">
			<div class="bsd1 bgwhite pt10">
				<div class="lh50 pl20 fm b rel f18">
					{$field.title}
					<span class="{$field.styleName}">{$field.tname}</span>
					<!-- 分享开始 -->
					<div class="dib r mt10 mr10">
						<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a><a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a><a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a></div>
						<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
					</div>
					<!-- 分享结束 -->
				 <b class="abs bgblue h50 w5 f0 l-5 t0">1</b></div>
				<div class="gray pl20 rel">
					<span class="">{$field.uname}&emsp;发布于 {$field.addtime|hd_date:'Y-m-d H:i:s'}&emsp;频道：&ensp;</span>
					<a href="{|U('List/index')}" class="gray">{$field.cname}&emsp;</a>  
					<span class="dib w90 h14 star f0 dib_vm">
						<b class="dib h14 f0" style="width:{$field.star|getStarPct}%"></b>
					</span>
					<span class="f14 orange">{$field.star}</span>
					<div class="abs r15 t0">
						<i class="icon-eye-open icon-large mr5 gray" title="查看数"></i>{$field.hits} 
						<i class="icon-comment icon-large mr5 gray4 ml5"></i>
						<b class="gray mr5 ml5" id="commentNum">{$commentTotal}</b>
						<a href="{|U('Comment/enjoy')}" class="<if value='{$enjoy}'>red<else/>gray4</if> icon-heart icon-large" onclick="return enjoy(this);"></a>
						<b class="gray mr5 ml5" id="enjoyNum">{$field.enjoys}</b>
					</div>
				</div>
				<div class="p20 fm f16 lh30">
					<if value="$field.videoUrl">
						<object width="100%" height="500"  type="application/x-shockwave-flash" data="{$field.videoUrl}">
							<param value="{$field.videoUrl}" name="movie">
							<param name="wmode" value="transparent">
							<param name="allowFullScreen" value="true">
							<param name="allowScriptAccess" value="always">
							<param name="flashvars" value="isAutoPlay=false&quality=high">
							<param name="loop" value="true" />
							<param name="play" value="true" />
							<embed src="{$field.videoUrl}f"  allowscriptaccess="always" wmode="Opaque" quality="high" allowfullscreen="true" type="application/x-shockwave-flash">
							</embed>
						</object>
					</if>
					{$field.content}
					<if value="$field.medium">
						<img src="__ROOT__/{$field.pic}" alt="{$field.title}" style="max-width:820px;">
					</if>
					<if value="$field.vurl">
						<p class="p10">
							视频地址： <a class="f16" target="_blank" href="{$field.vurl}">{$field.vurl}</a>
						</p>
					</if>
					<p class="p10">
						老地方电影 <a class="f16" href="{|U('Index/content',array('cid'=>$field['cid'],'aid'=>$field['aid']))}">{$field.title}</a>评论内容归本站版权所有，转载请注明来自 <a class="f16"  href="__ROOT__">老地方电影（laodifang.com）</a> 
					</p>
					<p class="p10">
						<span class="fs">标签：</span>
						<list from="$field.tags" name="t">
							<a href="{|U('Search/index',array('keys'=>$t))}" class="dib gray f14 fs bgwhite-2 blue p2 pl5 pr5 rad2 a1 m5">{$t}</a>
						</list>
					</p>
				</div>
				<div class="p10 fix">
					<if value="$field.enjoys">
						<a href="" class="af bgred3 f16 dib pt5 pb5 pl10 pr10 white rad3">喜欢 +{$field.enjoys}</a>
					</if>
					
					<!-- 分享开始 -->
					<div class="dib r">
						<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a><a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a><a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a></div>
						<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
					</div>
					<!-- 分享结束 -->
				</div>
			</div>
			<!-- 评论区域开始 -->
			<div class="f w860 bsd1 mr20 l bgwhite mt20 pb10 pt10">
				<div class="lh30 pl20 fm b rel f14"><span class="mr10">影片点评</span> <span class="gray1">已有 <b id="commentNumDown">{$commentTotal}</b> 条短评</span> <b class="abs bgblue h30 w5 f0 l-5 t0"></b></div>
				<div class="bbd ml20 mr20 mt10 pb10 pl80 rel">
					<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>
					<form action="{|U('Comment/add')}" method="post" onsubmit="return ajax(this);">
						<input type="hidden" name="aid" value="{$field.aid}" />
						<textarea class="p5" name="content" id="commcont" cols="140" rows="5"></textarea>
						<p class="p5 tr mt10">
							<span class="gray">还可以发表 <span class="zishu red fg f14 b">2000</span> 字</span>
							<input type="submit" class="btn bgblue" value="发表评论" />
						</p>
					</form>
				</div>
				<div id="commentWrap">
					<!-- 用户评论 -->
					<!-- <div class="bbd ml20 mr20 mt10 pb10 pl80 rel">
						<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>
						<div class="p5">
							<p class="gray p5"><a class="gray f12" href="">老地方</a></p>
							<p class="p5 f14">没有星爷的声音，就不是星爷的电影了。</p>
							<p class="gray p5 f12">2014-5-24 05:05:46</p> -->
							<!-- 用户评论引用 -->
							<!-- <div class="btd ml20 mr20 mt10 pb10 pt10 pl80 rel">
								<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>
								<div class="p5">
									<p class="gray p5"><a class="gray f12" href="">老地方</a></p>
									<p class="p5 f14">没有星爷的声音，就不是星爷的电影了。</p>
									<p class="gray p5 f12">2014-5-24 05:05:46</p>
								</div>
							</div> -->
							<!-- 用户评论引用结束 -->
						<!-- </div>
					</div> -->
					<!-- 用户评论结束 -->
				
					<!-- 用户评论 -->
					<list from="$comment" name="c">
						<div class="bbd ml20 mr20 mt10 pb10 pl80 rel">
							<div class="abs l0">
								<a class="dib bdc">
									<if value="!$c.pic">
										<img src="__TPL__/img/logo.png" alt="" />
									<else/>
										<img src="__ROOT__/{$c.pic}" width="65" height="65" alt="" />
									</if>
								</a>
							</div>
							<div class="p5">
								<p class="gray p5"><a class="gray f12" href="">{$c.email} [{$c.nickname}]</a></p>
								<p class="p5 f14 rel">{$c.content} <span cid="{$c.cid}" class="zanComment hand abs r10 t5 gray2"><i class="icon-thumbs-up mr5"></i>赞 {$c.zan}</span> </p>
								<p class="gray p5 f12">{$c.addtime|hd_date:'Y-m-d H:i:s'}</p>
							</div>
						</div>
					</list>
					<!-- 用户评论结束 -->
					<!-- 分页 -->
					<div class="pageAjax page mt10"> {$page} </div>
				</div>
				
				
			</div>
			<!-- 评论区域结束 -->
		</div>
		<!-- 左侧结束 -->
		<!-- 右侧开始 -->
		<div class="f w300 l">

			<!-- <div class="bsd2 bde bgwhite mb20">
				<div class="lh30 pl20 fm b rel mt10">影片作者 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b></div>
				<div class="p10 of">
					<div class="l mr10"><a href=""><img src="__TPL__/img/logo.png" alt="" /></a></div>
					<div class="l">
						<p class="gray-3 pb10 f14">松岩 <span class="ml10 orange2 f18 fg">V</span></p>
						<p class="gray">影视爱好者</p>
						<p class="gray">片中职务: 剪辑</p>
					</div>
				</div>
			</div> -->

			<div class="bsd2 bde bgwhite">
				<div class="lh30 pl20 fm b rel mt10">热门排行 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b> </div>
				<div class="p10">
					<hotArticle row="4">
						<p class="p5 mr0 dib w120 h80 mt5 rel">
							<a href="{$a.urls}" class="">
								<if value="$a.small">
									<img width="120" height="80" src="__ROOT__/{$a.small}" alt="" />
								<else/>
									<img width="120" height="80" src="__TPL__/img/logo.png" alt="" />
								</if>
								
								<span class="abs white b3 r5 fm">{$a.addtime|hd_date:'i:s'}</span>
							</a>
							<a href="{$a.urls}" class="f14 gray-5 fm">{$a.title|mb_substr:0,8,'utf8'}</a>
						</p>
					</hotArticle>
					
					
					
					<p class="p5 fm mt10 tr"><a href="" class="f14">推荐影片给我们></a></p>
				</div>
			</div>
			<div class="bsd2 bde mt20 bgwhite">
				<div class="lh30 pl20 fm b rel mt10">热门活动 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b> <a href="" class="abs r10 t0 n fs black">更多活动+</a></div>
				<div class="p10">
					<hotArticle row="10" cid="16">
						<a href="{$a.urls}" class="p10 dib"><img class="w260 h120" src="__ROOT__/{$a.medium}" alt="" /></a>
					</hotArticle>
				</div>
			</div>
		</div>
		<!-- 右侧结束 -->
	</div>
	<!-- 内容结束 -->


<!-- 登陆区域 -->
<div id="Login" class="dn">
	<div class="w600 fm mt20">
		<form action="{|U('User/login')}" method="post" onsubmit="return loginAjax(this);">
			<p class="p10 fix">
				<span class="w100 dib mr15 tr f14">常用邮箱</span>
				<input name="email" type="text" class="pct50 p5 f14" />
			</p>
			<p class="p10 fix mt20">
				<span class="w100 dib mr15 tr f14">密码</span>
				<input name="pwd" type="password" class="pct50 p5 f14" />
			</p>
			<p class="p10 fix mt20">
				<span class="w100 dib mr15 tr f14"></span>
				<label for="au">
					<input name="auto" type="checkbox" id="au" class="" checked="" /> 下次自动登陆
				</label>
				<!-- <a href="" class="ml30 pl30">忘记密码了</a> -->
			</p>
			<p class="p10 fix f18 mt20">
				<span class="w100 dib mr15 tr f14"></span>
				<input type="submit" class="btn bgblue pct50" value="登 陆" />
			</p>
			<p class="p10 fix mt20">
				<span class="w100 dib mr30 tr f14"></span>
				<span class=" dib tr f14">
					还没有账号？ <a href="{|U:'User/reg'}">立即注册</a>
				</span>
			</p>
		</form>
	</div>
</div>
<!-- 登陆区域结束 -->




<script type="text/javascript">
	var sessionUid = '{$hd.session.user.uid}';
	var sessionEmail = '{$hd.session.user.email}';
	var sessionNickName = '{$hd.session.user.nickname}';
	var loginHtml = $('#Login').clone();
	function ajax(id){ //发表评论
		var url = $(id).attr('action'),
			cont = $(id).find('[name=content]'),
			warp = $('#commentWrap');
		$.post(url,$(id).serialize(),function(re){
			if(re.state){
				h='\
				<div class="bbd ml20 mr20 mt10 pb10 pl80 rel">\
					<div class="abs l0"><a class="dib bdc"> <img src="__TPL__/img/logo.png" alt="" /></a></div>\
					<div class="p5">\
						<p class="gray p5"><a class="gray f12" href="">'+sessionEmail+' ['+sessionNickName+']</a></p>\
						<p class="p5 f14">'+re.data.content+'</p>\
						<p class="gray p5 f12">'+re.data.addtime+'</p>\
					</div>\
				</div>\
				';
				$.msg({
					str:re.msg,
					close:function(){
						cont.focus();
					}
				})
				cont.val('');
				warp.prepend(h);
				var n = Number($('#commentNum').text())+1;
				var dn = Number($('#commentNumDown').text())+1;
				$('#commentNum').text(n);
				$('#commentNumDown').text(dn);
			}else{
				alert(re.msg);
			}
		},'json')
		return false;
	}
	//喜欢+1
	function enjoy(id){
		if(checkLogin()){
			var url = $(id).attr('href'),cl = $(id).hasClass('red')?1:0,
			aid = "{$field.aid}";
			$(id).toggleClass('gray4').toggleClass('red');
			$.post(url,{aid:aid,cl:cl},function(re){
				if(re==1){
					$.msg({ str:' <b class="white bggreen p5 rad5">:)</b> 喜欢+1'});
					var n = Number($('#enjoyNum').text())+1;
					$('#enjoyNum').text(n);
				}else{
					$.msg({ str:' <b class="white bggray p5 rad5">:(</b> 喜欢-1'});
					var n = Number($('#enjoyNum').text())-1;
					$('#enjoyNum').text(n);
				}
				
			})
		}
		return false;
	}

	$('#commcont').click(function(){
		checkLogin();
	})

	//评论 赞  功能
	$('.zanComment').click(function(){
		var cid=$(this).attr('cid'),
			url='{|U("Comment/zan")}';
			$.post(url,{cid:cid},function(re){
				if(re) $.msg({str:'已赞!'});
			})
	})
	
</script>


	<!-- 底部开始 -->
	<include file="__PUBLIC__/bottom.html" />
	<!-- 底部结束 -->
